﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace Shuba.Web.bulk_upload
{
    public partial class topup_list_bulk_excel : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Clear();
            Response.Buffer = true;
            Response.ContentType = "application/vnd.ms-excel";

            string txtSearch = Request["txtSearch"];
            string[] param = txtSearch.Split('~');

            string status = param[2];
            var _bll = new Shuba.Business.TopUpBulk();

            if (status == "A")
            {
                var list = _bll.GetListTopUpRealExcel(param[0], param[1]);
                rep1.DataSource = list;
                rep1.DataBind();
            }
            else
            {
                var list = _bll.GetListTopUp(param[0], param[1]);

                rep1.DataSource = list;
                rep1.DataBind();
            }
        }
    }
}
